import { create } from 'zustand'

interface PathItem {
    title: string
  }

interface BreadStore {
  path: PathItem[];
  setPath: (path: PathItem[]) => void;
}

const useBreadStore = create<BreadStore>()((set) => ({
  path: [{
    title: '住户管理'
  }, {
    title: '住户列表'
  }],
  setPath: (path: PathItem[]) => set({ path })
}))

export default useBreadStore